from flask import Flask, Blueprint
from apps.views.admin.index import bp as index_bp
# 创建demo
admin_bp = Blueprint('admin', __name__, url_prefix='/admin')

def register_admin_bps(app: Flask):
    admin_bp.register_blueprint(index_bp)
    app.register_blueprint(admin_bp)